class AddConfigs < ActiveRecord::Migration
  def self.up
    create_table :configurations do |t|
      t.column :torrent_files_root, :string
      t.column :video_files_root, :string
      t.column :bt_start_port, :integer
    end
    #create the default configs
    Configuration.new({:bt_start_port => 60500, :torrent_files_root => "/home/chris-rittersdorf/torrents", :video_files_root => "/home/chris-rittersdorf/videos/television"}).save
  end

  def self.down
    drop_table :configurations
  end
end
